﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TamerlaneData
{
    public class Game
    {
        private List<Province> provinces;
        private List<Country> countries;

        public Game()
        {
            provinces = new List<Province>();
            countries = new List<Country>();
        }

        public int Size
        {
            get { return provinces.Count; }
        }

        public void AddProvince(Province province)
        {
            provinces.Add(province);
        }

        public Province GetProvinceByName(String name)
        {
            foreach (Province prov in provinces)
            {
                if (prov.Name == name)
                    return prov;
            }

            return null;
        }

        public Province GetProvinceByIndex(int index)
        {
            return provinces[index];
        }

    }
}
